
// 自动生成模板Device
package equipment_management
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 全部设备 结构体  Device
type Device struct {
    global.GVA_MODEL
  DeviceNumber  *string `json:"deviceNumber" form:"deviceNumber" gorm:"comment:设备编号;column:device_number;" binding:"required"`  //设备编号
  Name  *string `json:"name" form:"name" gorm:"comment:设备名称;column:name;" binding:"required"`  //设备名称
  Location  *string `json:"location" form:"location" gorm:"comment:所在位置;column:location;" binding:"required"`  //所在位置
  OperationalStatus  *string `json:"operationalStatus" form:"operationalStatus" gorm:"comment:运营状态;column:operational_status;" binding:"required"`  //运营状态
  RunningStatus  *string `json:"runningStatus" form:"runningStatus" gorm:"comment:运行状态;column:running_status;" binding:"required"`  //运行状态
  ActiveStatus  *string `json:"activeStatus" form:"activeStatus" gorm:"comment:激活状态;column:active_status;size:已激活,未激活;" binding:"required"`  //激活状态
  SoftwareVersion  *string `json:"softwareVersion" form:"softwareVersion" gorm:"comment:软件版本;column:software_version;" binding:"required"`  //软件版本
  AfterSalesStaff  *string `json:"afterSalesStaff" form:"afterSalesStaff" gorm:"comment:售后人员;column:after_sales_staff;" binding:"required"`  //售后人员
}


// TableName 全部设备 Device自定义表名 devices
func (Device) TableName() string {
    return "devices"
}





